import request from '@/utils/login'


export interface userInfoModel {
  id?: number,
  loginName?: string
  nickName?: string
  passwd?: string
  name?: string
  phoneNum?: string
  email?: string
  headImg?: string
  userLevel?: string
  status?: number
  birthday?: null,
  gender?: null,
  createTime?: string
  operateTime?: null,
  openId?: null
}
export interface loginModel {
  nickName:string
  name: string
  userId: number,
  token: string
}
export interface loginObjModel {
   phone: string
   password: string
}
// 登录
export   const reqLogin = (loginObj:loginObjModel) => request.post<any,loginModel>('/api/user/passport/login',loginObj)

